package com.bw.module_motorcircle.http

import com.bw.lib_net.BaseResponse
import com.bw.module_motorcircle.model.MotoCircleNavigationItem
import com.bw.module_motorcircle.model.PostListModel
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @author ytx
 * @date 2025-09-25 14:48
 * @description
 */
interface MotorApi {
    @GET("/app/motorCircle/navigationItem")
    suspend fun getNavigationItem():BaseResponse<List<MotoCircleNavigationItem>>

    /**
     * 帖子列表
     */
    @GET("/app/postsInfo/pageList")
    suspend fun pageList(
        @Query("sortBy") sortBy: String? = null,
        @Query("topicId") topicId: String? = null,
        @Query("memberId") memberId: String? = null,
        @Query("isFocus") ifFocus: Int? = null,
        @Query("pageNum") pageNum: Int,
        @Query("pageSize") pageSize: Int = 10,
        @Query("keyword") keyword: String? = null
    ): BaseResponse<PostListModel>

    /**
     * 是否有关注的人
     */
    @GET("/app/friend/checkIfHasFocus")
    suspend fun checkIfHasFocus(): BaseResponse<Boolean>
}